package net.bingosoft.common.service;

import net.bingosoft.common.data.BaseDao;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import bingo.persister.Persister;


/**
 * 2007-10-18 下午03:10:51
 * Author:yangdongyu(yangdy@bingosoft.net)
 * ReadMe:基本服务类,使子类不需关心要注入的东西,提供一个logger
 * ChangeLog:
 */
public class BaseService implements IPersisterAware {
	protected final  Log log = LogFactory.getLog(this.getClass());
	
	protected BaseDao dao; 
	
	
	/* (non-Javadoc)
	 * @see net.bingosoft.common.service.IPersisterAware#getPersister()
	 */
	public Persister getPersister(){
		return dao.getPersister();
	}

	public BaseDao getBaseDao() {
		return dao;
	}

	public void setBaseDao(BaseDao baseDao) {
		this.dao = baseDao;
	}

}
